/*
 * @Author: yushuaixm
 */
const { http } = uni.$zz

export const getcode = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/auth/getcode', params, config)


export const savejs = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/jz/bcjz', params, config)


export const saveJzZmSfz = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/jz/saveJzZmSfz', params, config)

export const saveJzFmSfz = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/jz/saveJzFmSfz', params, config)


export const getOcrDetail = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/jz/getOcrDetail', params, config)

export const getParamByHyk = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/jz/getParamByHyk', params, config)


export const payYhkqOrder = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/jz/payYhkqOrder', params, config)


export const getDetailBywxid = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/jz/getDetailBywxid', params, config)


export const saveTpImg = (
  params?: any,
  config = {
    custom: {
      catch: true
    }
  }
) => http.post('wx/jz/saveJzFmSfz', params, config)




export default { getcode, savejs, saveJzZmSfz, saveJzFmSfz, getOcrDetail, getParamByHyk, payYhkqOrder, getDetailBywxid, saveTpImg };
